package com.eage.security.login;

import com.eage.security.domain.ShiroUserDetail;
import com.eage.security.exception.ShiroNoLoginException;
import com.eage.security.login.ShiroUserDetailService;
import org.apache.shiro.authc.AuthenticationException;
import org.springframework.stereotype.Component;

/**
 * @Author: lex
 * @Date: 2019/3/5
 * @Desc 默认实现, 防止项目无法运行, 但是需要开发者根据实际业务自定义方法
 */
@Component
public class DefaultShiroUserDetailServiceImpl implements ShiroUserDetailService {

    @Override
    public ShiroUserDetail getByMobile(String mobile) throws AuthenticationException {
        throw new ShiroNoLoginException("开发者根据实际业务自定义方法");
    }

    @Override
    public ShiroUserDetail getByUserName(String username) throws AuthenticationException {
        throw new ShiroNoLoginException("开发者根据实际业务自定义方法");
    }

    @Override
    public ShiroUserDetail getBySocialProvider(String itemId, String socialProviderId) throws AuthenticationException {
        throw new ShiroNoLoginException("开发者根据实际业务自定义方法");
    }

}
